package com.cmcc.aregister.ui.activity;

import com.cmcc.aregister.R;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TabHost;
import android.widget.TextView;

public class HelpActivity extends ParentActivity
{
    private TabHost serviceTab;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help_layout);

        ((ImageView) findViewById(R.id.title))
            .setBackgroundResource(R.drawable.help);
        serviceTab = (TabHost) findViewById(R.id.service_tabhost);
        serviceTab.setup();

        LinearLayout tab1 = (LinearLayout) LayoutInflater.from(this).inflate(
            R.layout.help_tab_layout, null);

        LinearLayout tab2 = (LinearLayout) LayoutInflater.from(this).inflate(
            R.layout.help_tab_layout_two, null);

        serviceTab.addTab(serviceTab.newTabSpec("tab01").setIndicator(tab1)
            .setContent(R.id.tab01_layout));

        serviceTab.addTab(serviceTab.newTabSpec("tab02").setIndicator(tab2)
            .setContent(R.id.tab02_layout));

        // helpContentTxt01 = (TextView) findViewById(R.id.help_content01_txt);

        /*
         * helpContentTxt01.setText(Html.fromHtml( "<b>text3:</b>  Text with a "
         * + "<a href=\"http://www.google.com\">link</a> z " +
         * "created in the Java source code using HTML."));
         */

        // helpContentTxt01.setMovementMethod(LinkMovementMethod.getInstance());
    }
}
